//----------T_Patent开始----------
using Dapper;
using System;
namespace R.DMS.Data
{

    /// <summary>
    /// 数据表实体类：专利资料
    /// </summary>
    [Table("T_Patent")]
    public class PatentEntity
    {

        /// <summary>
        /// Int32:编号
        /// </summary>   
        [Key]
        public Int32 Pa_Id { get; set; }

        /// <summary>
        /// String:专利名称
        /// </summary>                       
        public String Pa_PatentName { get; set; }

        /// <summary>
        /// String:专利人员
        /// </summary>                       
        public String Pa_PatentUser { get; set; }

        /// <summary>
        /// Byte:专利类型 1发明、2实用新型、3外观设计
        /// </summary>                       
        public Byte Pa_PatentType { get; set; }

        /// <summary>
        /// 类型描述
        /// </summary>
        [Editable(false)]
        public String Pa_PatentTypeDesc
        {
            get
            {
                return G_IS.Comm.EnumHelper.GetDesByValue<EnumPatentType>(Pa_PatentType);
            }
        }

        /// <summary>
        /// String:专利号
        /// </summary>                       
        public String Pa_PatentNo { get; set; }

        /// <summary>
        /// DateTime:申请日期或发布日期
        /// </summary>                       
        public DateTime Pa_ApplyDate { get; set; }

        /// <summary>
        /// Boolean:是否代理  1代理、0未代理
        /// </summary>                       
        public Boolean Pa_ProxyFlag { get; set; }

        /// <summary>
        /// 代理描述
        /// </summary>
        [Editable(false)]
        public String Pa_ProxyFlagDesc
        {
            get
            {
                return Pa_ProxyFlag ? "是" : "否";
            }
        }

        /// <summary>
        /// Byte:状态 0申请中、1授权
        /// </summary>                       
        public Byte Pa_Status { get; set; }

        /// <summary>
        /// 状态描述
        /// </summary>
        [Editable(false)]
        public String Pa_StatusDesc
        {
            get
            {
                return G_IS.Comm.EnumHelper.GetDesByValue<EnumPatentStatus>(Pa_Status);
            }
        }

        /// <summary>
        /// Boolean:无效标识  1无效、0有效
        /// </summary>                       
        public Boolean Pa_DeleteFlag { get; set; }

        /// <summary>
        /// String:客户编号
        /// </summary>                       
        public String Pa_CustomerNo { get; set; }

        /// <summary>
        /// String:客户名称
        /// </summary>                       
        public String Pa_CustomerName { get; set; }

        /// <summary>
        /// DateTime:创建日期 默认为当前时间
        /// </summary>                       
        public DateTime Pa_CreateTime { get; set; }

        /// <summary>
        /// String:创建人编号 当前用户ID
        /// </summary>                       
        public String Pa_CreatorUserId { get; set; }

        /// <summary>
        /// String:创建人姓名
        /// </summary>                       
        public String Pa_CreatorUserName { get; set; }

        /// <summary>
        /// DateTime:更新时间
        /// </summary>                       
        public DateTime? Pa_UpdateTime { get; set; }

        /// <summary>
        /// String:更新人编号
        /// </summary>                       
        public String Pa_UpdateUserId { get; set; }

        /// <summary>
        /// String:更新人名称
        /// </summary>                       
        public String Pa_UpdateUserName { get; set; }

        /// <summary>
        /// String:备注
        /// </summary>                       
        public String Pa_Remark { get; set; }

    }
}

//----------T_Patent结束----------

